#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define DATA 6

void simulate(int n)
{
	int num, pos, i, j, k, sum = 0;
	int *rst = NULL;

	num = n * 6;
	rst = (int *)malloc(sizeof(int) * num);
	if (rst == NULL)
		return;
	memset(rst, 0, sizeof(int) * num);

	/* init for the first time */
	for (i = 0; i < DATA; i++)
		rst[i] = 1;
	
	/* for the remains (n - 1) times */
	pos = DATA * 2 - 1;
	for (i = 1; i < n; i++) {
		for (j = pos; j >= 0; j --) {
			rst[j] = 0;
			for (k = 1; (j - k) >= 0 && k <= DATA; k++)
				rst[j] += rst[j - k];
		}
		pos += DATA;
	}

	for (i = 0; i < num; i++) {
		printf("num:%d:times:%d\n", i + 1, rst[i]);
		sum += rst[i];
	}
	printf("sum:%d\n", sum);
}

int main()
{
	int n;
	scanf("%d", &n);
	simulate(n);
	return 0;
}
